package cn.itcast.goods.feign;

import cn.itcast.goods.vo.SetmealOverViewVO;
import cn.itcast.goods.vo.SetmealVO;
import cn.itcast.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("sky-goods")
public interface SetmealFeign {

    /**
     * 根据dishId查询dish
     */
    @GetMapping("/admin/setmeal/{id}")
    Result<SetmealVO> getById(@PathVariable Integer id);

    @GetMapping("/admin/setmeal/feign/getPackageOverview")
    SetmealOverViewVO getPackageOverview();

}
